package io.summer.basis.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author ml
 */
@Configuration
@ConfigurationProperties(prefix = RetryProperties.PREFIX)
@Data
public class RetryProperties {
  final static String PREFIX = "summer.basis.retry";
  private boolean enable = true;
  private int maxAttempts = 3;
  private long maxInterval = 10000L;
  private double multiplier = 2.0;
  private long initialInterval = 500L;
}
